package dictionary.script;

public class Type34 extends Word implements DictionaryInterface{
	public Type34(String initial, Word word) {
		this.initial = initial;
		this.medial = "";
		this.nucleus = word.nucleus;
		this.ending = word.ending;
		this.word = this.initial + this.nucleus + this.ending;
	}
	public static boolean check(String initial, Word word){
		int pos = 0;
		for(int i=0;i<INITIAL.length;i++)
			if(initial.equals(INITIAL[i])){
				pos = i;
				break;
			}
		for(int i=0;i<INITIAL_NUCLEUS[pos].length;i++){
			if(word.nucleus.equals(INITIAL_NUCLEUS[pos][i]))
				return true;
		}
		return false;
	}
}
